From: Florian Müllner Date: Fri, 26 Jul 2019 00:28:40 +0000 (+0200) Subject: pointerA11yTimeout: Use notify handler instead of onUpdate callback X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bf497ed64;p=gnome-shell.git pointerA11yTimeout: Use notify handler instead of onUpdate callback We either need to queue a repaint on opacity updates or we don't, whether the opacity change happens in an animation or not shouldn't matter. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654 --- diff --git a/js/ui/pointerA11yTimeout.js b/js/ui/pointerA11yTimeout.js index 67b58f8af..0bbe4a46c 100644 --- a/js/ui/pointerA11yTimeout.js +++ b/js/ui/pointerA11yTimeout.js @@ -17,6 +17,8 @@ class PieTimer extends St.DrawingArea { can_focus: false, reactive: false }); + + this.connect('notify::opacity', this.queue_repaint.bind(this)); } vfunc_repaint() { @@ -69,7 +71,6 @@ class PieTimer extends St.DrawingArea { { opacity: 255, time: duration / 1000, transition: 'easeOutQuad', - onUpdate: () => this.queue_repaint(), onComplete: () => this.stop() }); }